package com.joy.web.admin.mapper;

import com.joy.web.admin.entity.UserRole;
import com.joy.web.base.mapper.IBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yjzhao
 * @since 2019-09-17
 */
public interface UserRoleMapper extends IBaseMapper<UserRole> {
    /**
     * @Description 根据用户Id 获取所有已选取的 角色列表
     * @param userId
     * @return
     * @Author yjzhao
     * @Date 2019/9/17 11:24
     **/
    List<String> findRoleIdListByUserId(@Param("userId") String userId) throws Exception;
}
